Add HTTP method validation.
